package com.vr.xuecheng.content.model.dto;

import com.vr.xuecheng.base.valid.ValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * @author hzh
 * @date 2025/03/16
 * 保存教师信息dto
 */
@Data
public class SaveOrUpdateTeacherDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = -2705758222168723441L;
    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {ValidationGroup.Update.class})
    private Long id;

    /**
     * 课程id
     */
    private Long courseId;
    /**
     * 教师描述
     */
    private String introduction;
    /**
     * 头像图片
     */
    private String photograph;
    /**
     * 职位
     */
    @NotBlank(message = "教师职位不能为空", groups = {ValidationGroup.Insert.class, ValidationGroup.Update.class})
    private String position;
    /**
     * 教师名称
     */
    @NotBlank(message = "教师名称不能为空", groups = {ValidationGroup.Insert.class, ValidationGroup.Update.class})
    private String teacherName;
}
